package net.sourceforge.peers.sip.transactionuser;

import net.sourceforge.peers.Logger;
import net.sourceforge.peers.sip.AbstractState;

/**
 * 会话状态
 * 1.临时响应 101-199
 * 2.成功响应 2XX
 * 3.失败响应 300-699
 * 4.终止响应
 * @author Mr.Yan
 */
public abstract class DialogState extends AbstractState {

    protected Dialog dialog;

    public DialogState(String id, Dialog dialog, Logger logger) {
        super(id, logger);
        this.dialog = dialog;
    }
    
    public void receivedOrSent101To199() {}
    public void receivedOrSent2xx() {}
    public void receivedOrSent300To699() {}
    //sent or received a BYE for RFC3261
    public void receivedOrSentBye() {}
    
}
